php forum
php mysql forum
php mysql smarty
 
Topic Options
#232006 - 01/05/03 04:56 PM [6.2] Email Private Messages
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
This modification will allow users to email their private messages to themselves. It will also send the messages in HTML if they have elected to recieve email in that format.<br />


Attachments
63781-pm-mailer.6.2.zip (36 downloads)

_________________________
~Dave
ChattersOnline.com

Top
#232007 - 01/05/03 07:30 PM Re: [6.2] Email Private Messages [Re: sjsaunders]
sportbikes Offline
Member

Registered: 10/29/02
Posts: 167
Loc: So Cal USA
Perfect!<br /><br />I emailed myself 1,000 PMs (sent/recv'd) Now I can have my backup and a clean UBB DB <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
mike
www.esportbike.com

Top
#232008 - 01/06/03 05:49 AM Re: [6.2] Email Private Messages [Re: alsalmicom]
Turbosport Offline
Member

Registered: 09/08/01
Posts: 157
Loc: Kent, UK.
Cheers Dave, excellent hack well pleased with this gem, but the format concerned me slightly so heres what I did:<br /><br /><br />I have changed the layout a bit:<br />==============<br />$ubbt_lang['TEXT_DELETE'] = "Check";<br />==============<br />as the heading of the check boxes normally says delete.<br /><br />Also<br />==============<br />$ubbt_lang['PM_EMAIL'] = "Email Checked";<br />==============<br />so it maches delete checked<br /><br />and i reordered the buttons:<br />==============<br /><input type="button" name="uncheckall" value="{$ubbt_lang['UNCHECK_ALL']}" onClick="uncheckAll('document.checkboxform1.box')" class="buttons" /><br /><input type="button" name="checkall" value="{$ubbt_lang['CHECK_ALL']}" onClick="checkAll('document.checkboxform1.box')" class="buttons" /> <br /><input type="submit" name="deletecheck" value="{$ubbt_lang['DELETE_CHECK']}" class="buttons" /><br /><input type="submit" name="pmemail" value="{$ubbt_lang['PM_EMAIL']}" class="buttons" /><br />===============
_________________________
Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!

Top
#232009 - 01/08/03 02:26 PM Re: [6.2] Email Private Messages [Re: sjsaunders]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
There's a small typo so that the subject isn't displayed in html format. <br /> <br />$Mbody = "<html>".$newline."<head>".$newline."<title>".$M S ubject."</title>".$newline."</head><body>".$newline.$Mbody."</body>".$newline."</html>".$newline; <br /> <br />Should be "$Msubject" <br /> <br />I also put the text strings "From", "Subject" and "Date" into the language array. <br /> <br />If anyone is interested. Replace the last if/else statement with: <br /> <br />
Code:
 if ($user['U_EmailFormat'] != "HTML") { <br /> 	$Mbody = $ubbt_lang['EPM_FROM'].": ".$Msender.$newline.$ubbt_lang['EPM_SUBJECT'].": ".$Msubject.$newline.$ubbt_lang['EPM_DATE'].": ".$date.$newline.$newline; <br /> 	$Mbody .= $Mmessage; <br /> 	$Mbody = eregi_replace("&lt;br /&gt;","$newline",$Mbody); <br /> } <br /> else { <br />	$Mbody = $ubbt_lang['EPM_FROM'].": ".$Msender."&lt;br /&gt;".$newline.$ubbt_lang['EPM_SUBJECT'].": ".$Msubject."&lt;br /&gt;".$newline.$ubbt_lang['EPM_DATE'].": ".$date."&lt;br /&gt;&lt;br /&gt;".$newline; <br />	$Mbody .= $Mmessage; <br />	$Mbody = str_replace("\"{$config['images']}","\"{$config['imageurl']}",$Mbody); <br />	$Mbody = str_replace("$newline","&lt;br /&gt;$newline",$Mbody); <br />	$Mbody = "&lt;html&gt;".$newline."&lt;head&gt;".$newline."&lt;title&gt;".$Msubject."&lt;/title&gt;".$newline."&lt;/head&gt;&lt;body&gt;".$newline.$Mbody."&lt;/body&gt;".$newline."&lt;/html&gt;".$newline; <br />
<br /> <br />and add this to the gerneric.php language file: <br />
Code:
$ubbt_lang['EPM_FROM'] = "From:"; <br />$ubbt_lang['EPM_SUBJECT'] = "Subject:"; <br />$ubbt_lang['EPM_DATE'] = "Date:"; 
_________________________
Running a community? -> Keep informed and take it to the next level

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks